package com.huige.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * @Author 朱志辉
 * @Create 2024/7/18 下午5:07
 * @Version 1.0
 * Description:   项目的配置类,controller handlerMapping handlerAdapater加入ioc容器
 */
@EnableWebMvc //handlerAdapter配置了json转化器
              //添加秘书 添加经理 给经理添加jacksonjson处理器
@Configuration
@ComponentScan("com.huige.header")
public class MvcConfig {

//    @Bean
//    public RequestMappingHandlerMapping requestMappingHandlerMapping() {
//        return new RequestMappingHandlerMapping();
//    }
//
//    @Bean
//    public RequestMappingHandlerAdapter requestMappingHandlerAdapter() {
//        return new RequestMappingHandlerAdapter();
//    }

}
